home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DKBSRC.ARJ / UNIX.MAK < prev    next >
Makefile  |  1991-05-04  |  3KB  |  89 lines

  1. # Makefile for DKB Ray Tracing Program by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. #
  4. #
  5. # MAKE Macros and Such...
  6. #
  7.  
  8. #***************************************************************
  9. #*
  10. #*                      UNIX Makefile
  11. #*
  12. #***************************************************************
  13.  
  14. # The exact options may depend on your compiler.  Feel free to modify
  15. # these as required.
  16. OBJ    = o
  17. MACHINE_OBJ    = unix.$(OBJ)
  18. CFLAGS=        -c -O
  19. LFLAGS =    -o dkbtrace -O
  20.  
  21. # Make's implicit rules for making a .o file from a .c file...
  22. #
  23. .c.o :
  24.     $(CC) $(CFLAGS) $*.c
  25.  
  26.  
  27. DKBOBJS = trace.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  28.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  29.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ) dump.$(OBJ) \
  30.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  31.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) targa.$(OBJ) \
  32.           quartics.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  33.  
  34.  
  35. dkbtrace:    $(DKBOBJS)
  36.     cc $(LFLAGS) $(DKBOBJS) -lm
  37.  
  38. trace.$(OBJ) : trace.c dkbproto.h frame.h vector.h config.h
  39.  
  40. tokenize.$(OBJ) : tokenize.c dkbproto.h frame.h config.h
  41.  
  42. parse.$(OBJ) : parse.c dkbproto.h frame.h config.h
  43.  
  44. render.$(OBJ) : render.c dkbproto.h frame.h vector.h config.h
  45.  
  46. lighting.$(OBJ) : lighting.c dkbproto.h frame.h vector.h config.h
  47.  
  48. prioq.$(OBJ) : prioq.c dkbproto.h frame.h config.h
  49.  
  50. texture.$(OBJ) : texture.c dkbproto.h frame.h vector.h config.h
  51.  
  52. objects.$(OBJ) : objects.c dkbproto.h frame.h vector.h config.h
  53.  
  54. spheres.$(OBJ) : spheres.c dkbproto.h frame.h vector.h config.h
  55.  
  56. planes.$(OBJ) : planes.c dkbproto.h frame.h vector.h config.h
  57.  
  58. quartics.$(OBJ) : quartics.c dkbproto.h frame.h vector.h config.h
  59.  
  60. vect.$(OBJ) : vect.c dkbproto.h frame.h config.h
  61.  
  62. quadrics.$(OBJ) : quadrics.c dkbproto.h frame.h vector.h config.h
  63.  
  64. matrices.$(OBJ) : matrices.c dkbproto.h frame.h vector.h config.h
  65.  
  66. csg.$(OBJ) : csg.c dkbproto.h frame.h vector.h config.h
  67.  
  68. colour.$(OBJ) : colour.c dkbproto.h frame.h config.h
  69.  
  70. viewpnt.$(OBJ) : viewpnt.c dkbproto.h frame.h vector.h config.h
  71.  
  72. ray.$(OBJ) : ray.c dkbproto.h frame.h vector.h config.h
  73.  
  74. iff.$(OBJ) : iff.c dkbproto.h frame.h config.h
  75.  
  76. gif.$(OBJ) : gif.c dkbproto.h frame.h config.h
  77.  
  78. gifdecod.$(OBJ) : gifdecod.c dkbproto.h frame.h config.h
  79.  
  80. raw.$(OBJ) :    raw.c dkbproto.h frame.h config.h
  81.  
  82. triangle.$(OBJ) : triangle.c dkbproto.h frame.h vector.h config.h
  83.  
  84. amiga.$(OBJ) :    amiga.c dkbproto.h frame.h config.h
  85.  
  86. dump.$(OBJ) :    dump.c dkbproto.h frame.h config.h
  87.  
  88.  
  89.